$color-size: 24px;

.color-palette {
    position: absolute;
    left: 92px;
    top: 0;
    filter: drop-shadow(#4d3c4077 0 1px 3px);
    border-radius: 10px;
    box-shadow: 0 0 5px #00000088;
    padding: 0 10px;
    background-color: #fff;
}

.color-palette-container {
    display: grid;
    grid-auto-rows: 48px;
    grid-template-columns: repeat(6, 48px);
    border-radius: 5px;

    & > div {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .color-item {
        width: $color-size;
        height: $color-size;
        box-sizing: border-box;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        &:after {
            content: '';
            position: absolute;
        }
    }

    label[for='#fff'] {
        border: 1px solid #ebeaed;
    }

    input {
        height: $color-size;
        width: $color-size;
        position: absolute;
        transform: translate(-5px, -3px);
        opacity: 0;

        &:checked + .color-item {
            width: 36px;
            height: 36px;
        }
    }
}
